home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
util
/
shell
/
axsh_1_3_demo.lha
/
InstallDisk.lha
/
Install-AXsh_1.3
< prev
next >
Wrap
AmigaDOS Script File
|
1992-10-18
|
2KB
|
88 lines
.key name
.def name "DH0:AXsh"
; script to install AXsh (WB 1.3)
failat 20
version version.library 38 >nil:
if not warn
echo "You have Workbench 2.1. It's not recommended to use 1.3 install"
echo "script on this system."
endif
version version.library 37 >nil:
if not warn
echo "You have Workbench 2.0. It's not recommended to use 1.3 install"
echo "script on this system."
endif
if not exists AXsh:
if not exists <name>
echo "The path (" noline
echo <name> noline
echo ") can't be found."
echo "If you proceed, the needed directory will be created."
ask "Proceed (y/n)?"
if warn
echo "If you want to install AXsh elsewhere, you must execute this script"
echo "from the AmigaShell with c:Execute. For example like this:"
echo
echo " c:Execute AXshPack:Install-AXsh_1.3 DH0:Comm/AXsh
echo
echo "The last parameter defines the directory where AXsh will be installed."
wait 2
endcli
else
makedir <nimi>
if warn
echo "Can't create needed directory - exiting..."
wait 2
endcli
endif
endif
else
assign AXsh: <name>
endif
endif
echo
echo "Install AXsh system to '" noline
echo <nimi> noline
ask "' (y/n)?"
if warn
echo "Installing AXsh system - please wait..."
copy AXshPack:bin AXsh:bin all quiet
copy AXshPack:etc AXsh:etc all quiet
copy AXshPack:dev AXsh:dev all quiet
copy AXshPack:home AXsh:home all quiet
copy AXshPack:usr AXsh:usr all quiet
copy AXshPack:info AXsh:info all quiet
copy AXshPack:AXshAdmMan#? AXsh: quiet
copy AXshPack:AXshUpdates#? AXsh: quiet
echo "AXsh system installed."
endif
echo
ask "Install AXsh manual pages (y/n)?"
if warn
echo "Installing AXsh manual pages - please wait..."
copy AXshPack:man AXsh:man all quiet
echo "Manual pages installed."
endif
echo "Do you want to add needed mounting and system service starting commands"
ask "to your S:Startup-Sequence (backup will be made) (y/n)?"
if warn
echo >Ram:AXshInstTmp "C:Assign AXsh: <name>*NC:Execute AXsh:etc/StartupAdd.AXsh*N"
echo "Backupping S:Startup-Sequence to S:Copy_of_Startup-Sequence..."
copy S:Startup-Sequence S:Copy_of_Startup-Sequence
join ram:AXshInstTmp S:Copy_of_Startup-Sequence to S:Startup-Sequence
echo "Needed startup commands added to S:Startup-Sequence."
delete Ram:AXshInstTmp >NIL:
endif
echo "AXsh installation completed."
wait 2